package com.leyou.item.controller;

import org.springframework.web.bind.annotation.RestController;

@RestController
public class ItemController_ceshi {

 /*
    @PostMapping("item")
    public ResponseEntity<Item> saveItem(Item item){
        // 如果价格为空，则抛出异常，返回400状态码，请求参数有误
        if(item.getPrice() == null){
           throw new LyException(LyExceptionEnum.PRICE_CANNOT_BE_NULL);
        }
        Item result = itemService.saveItem(item);
        return ResponseEntity.status(HttpStatus.CREATED).body(result);
    }*/
}